﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.BLL.ViewModel;
using OFB.DAL;
using OFB.Domain;

namespace OFB.BLL.Context
{
    public class FeedbackkContext : CommonContext
    {
        public DataQueryDAL<FeedbackkViewModel> FeedbackViewModel { get; set; }
        public DataQueryDAL<Trainee> Trainee { get; set; }
        public DataQueryDAL<FeedbackAnswerViewModel> FeedbackAnswerViewModel { get; set; }
        public DataQueryDAL<FeedbackAnswerDetailViewModel> FeedbackAnswerDetailViewModel { get; set; }
        public DataQueryDAL<Criteria> Criteria { get; set; }

        public FeedbackkContext()
        {
            FeedbackViewModel = new DataQueryDAL<FeedbackkViewModel>(this.connectionStringName);
            Trainee = new DataQueryDAL<Trainee>(this.connectionStringName);
            FeedbackAnswerViewModel = new DataQueryDAL<FeedbackAnswerViewModel>(this.connectionStringName);
            FeedbackAnswerDetailViewModel = new DataQueryDAL<FeedbackAnswerDetailViewModel>(this.connectionStringName);
            Criteria = new DataQueryDAL<Criteria>(this.connectionStringName);
        }
    }
}
